<template>
  <div class="p-2">
    <addOrEditAgent
      v-if="agentId"
      :agentId="agentId"
    ></addOrEditAgent>
  </div>
</template>

<script setup name="operatorEdit" lang="ts">
import addOrEditAgent from '../components/addOrEditAgent.vue';
const route = useRoute();
const agentId = ref<any>('');
onMounted(() => {
  if (route.query.id) {
    agentId.value = route.query.id;
  }
});
</script>

<style lang="scss" scoped>
</style>
